package imachine;

/**
 * Class for the transition in Finite State Machine.
 * 
 * @version 0.0.1
 * @author Xiong Yi: xiongyee2000@gmail.com
 */
public final class Transition {
	/**
	 * The id of the transition.
	 */
	public final int id;

	/**
	 * The id of the source state.
	 */
	public final int sourceId;

	/**
	 * The id of the target state.
	 */
	public final int targetId;

	/**
	 * Constructor
	 * @param id the id of the transition
	 * @param sourceId the id of the source state
	 * @param targetId the id of the target state
	 */
	public Transition(int id, int sourceId, int targetId) {
		this.id = id;
		this.sourceId = sourceId;
		this.targetId = targetId;
	};
}
